<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:57:"E:\WWW\pz\hsycmsdemo02/app/hsycms\view\article\index.html";i:1533257295;s:54:"E:\WWW\pz\hsycmsdemo02\app\hsycms\view\index\head.html";i:1533175385;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HSYCMS后台管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="/public/layui/css/layui.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" type="text/css" href="/public/admin/css/touchTouch.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="/public/admin/css/admin.css?v=<?php echo time(); ?>" />
<script src="/public/admin/js/jquery.js?v=<?php echo time(); ?>"></script>
<script src='/public/tinymce/tinymce.min.js'></script>
<script src="/public/admin/js/validform5.3.2min.js"></script>
<script src="/public/layer//layer.js?v=<?php echo time(); ?>"></script>
<script src="/public/layui/layui.js?v=<?php echo time(); ?>"></script>
<script src="/public/admin/js/touchTouch.jquery.js"></script> 
<script src="/public/admin/js/admin.js?v=<?php echo time(); ?>"></script>
</head>
<body>

<div class="box">
  <form method="post" action="<?php echo url('dels'); ?>" id="listform" data-type=ajax>
    <input type="hidden" name="nid" value="<?php echo $nid; ?>" />
    <div class="box-head">
      <ul class="search">
        <li><a href="<?php echo url('add',['nid'=>$nid]); ?>" class="btn"><i class="icon-plus-square-o"></i>添加内容</a></li>
        <li><span>搜索：</span></li>
        <li><span>首页</span>
          <select name="s_ishome" onchange="sycms.search('<?php echo url('index'); ?>')">
            <option value="">选择</option>
            <option value="1">是</option>
            <option value="0">否</option>
          </select>
        </li>
        <li><span>推荐</span>
          <select name="s_isvouch" onchange="sycms.search('<?php echo url('index'); ?>')">
            <option value="">选择</option>
            <option value="1">是</option>
            <option value="0">否</option>
          </select>
        </li>
        <li><span>置顶</span>
          <select name="s_istop" onchange="sycms.search('<?php echo url('index'); ?>')">
            <option value="">选择</option>
            <option value="1">是</option>
            <option value="0">否</option>
          </select>
        </li>
        <?php if($iscid == 1): ?>
        <li><span>分类：</span>
          <select name="s_cid" onchange="sycms.search('<?php echo url('index'); ?>')">
            <option value="">请选择分类</option>                
            <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>                  
            <option value="<?php echo $vo['id']; ?>"><?php echo $vo['title']; ?></option>                
            <?php if(is_array($vo['son']) || $vo['son'] instanceof \think\Collection || $vo['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$s): $mod = ($i % 2 );++$i;?>                    
            <option value="<?php echo $s['id']; ?>">&nbsp;&nbsp;&nbsp;|--<?php echo $s['title']; ?></option>                
            <?php if(is_array($s['son']) || $s['son'] instanceof \think\Collection || $s['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $s['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$b): $mod = ($i % 2 );++$i;?>                    	
            <option value="<?php echo $b['id']; ?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|----<?php echo $b['title']; ?></option>                
            <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>              
          </select>
        </li>
        <?php endif; ?>           
        </li>
        <li>
        <span>关健字</span>
        <input type="text" class="intxt" name="title" placeholder="请输入搜索关健字" />
        </li>
        <li>
        <button type="button" class="btn" onclick="sycms.search('<?php echo url('index'); ?>')"><i class="icon-search"></i> 搜索</button>
        </li>
      </ul>
      <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a> </div>
    <table class="table">
      <tr>
        <th width="100">ID</th>
        <th width="8%">排序</th>
        <th width="8%">图片</th>
        <th>标题</th>
        <th>所属分类</th>
        <th>属性</th>
        <th width="10%">发布时间</th>
        <th width="200">操作</th>
      </tr>
      <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
      <tr>
        <td class="td1"><input type="checkbox" name="id[]" value="<?php echo $v['id']; ?>" />
          <?php echo $v['id']; ?></td>
        <td><input type="text" class="sorttext" value="<?php echo $v['sort']; ?>"  onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" 
        onblur="sycms.sorts('<?php echo url('sorts'); ?>',<?php echo $v['id']; ?>,this.value);" /></td>
        <td><a href="<?php echo $v['img']; ?>" class="imgview"><img src="<?php echo (isset($v['img']) && ($v['img'] !== '')?$v['img']:'/public/admin/images/noimg.jpg'); ?>" style="background:#eee;" alt="" width="30" height="30" /></a></td>
        <td><?php echo $v['title']; ?></td>
        <td><?php if($v['cid'] == ''): ?><?php echo getNavName($v['nid']); else: ?><?php echo getCateName($v['cid']); endif; ?></td>
        <td><?php echo _attr($v['ishome'],'ishome'); ?> <?php echo _attr($v['isvouch'],'isvouch'); ?> <?php echo _attr($v['istop'],'istop'); ?></td>
        <td><?php echo date('Y-m-d H:i:s',$v['datetime']); ?></td>
        <td><a href="<?php echo url('add',['id'=>$v['id'],'nid'=>$v['nid']]); ?>" class="btn"><i class="icon-edit"></i> 编辑</a> <a href="javascript:void(0);" onclick="sycms.del('<?php echo url('del',['id'=>$v['id']]); ?>')" class="btn red"><i class="icon-trash-o"></i> 删除</a></td>
      </tr>
      <?php endforeach; endif; else: echo "" ;endif; if($list[0]): ?>
      <tr>
        <td colspan="8"><ul class="operat">
            <li class="li1">
              <input type="checkbox" onclick="sycms.allselect(this)" />
              全选</li>
            <li><a href="javascript:void(0);" onclick="sycms.delallSelect('<?php echo url('delAll'); ?>')" class="btn red"><i class="icon-trash-o"></i> 批量删除</a><a href="javascript:void(0);" onclick="sycms.plattr('<?php echo url('plsorts'); ?>','')" class="btn"><i class="icon-trash-o"></i> 批量排序</a></li>
            <li><span>操作：</span>
              <select name="ishome" onchange="sycms.plattr('<?php echo url('ishome'); ?>',this)">
                <option value="">首页</option>
                <option value="1">是</option>
                <option value="0">否</option>
              </select>
              <select name="isvouch" onchange="sycms.plattr('<?php echo url('isvouch'); ?>',this)">
                <option value="">推荐</option>
                <option value="1">是</option>
                <option value="0">否</option>
              </select>
              <select name="istop" onchange="sycms.plattr('<?php echo url('istop'); ?>',this)">
                <option value="">置顶</option>
                <option value="1">是</option>
                <option value="0">否</option>
              </select>
            </li>
            <?php if($iscid == 1): ?>
            <li><span>移动到分类：</span>
              <select name="cid" onchange="sycms.plattr('<?php echo url('movecate'); ?>',this)">
                <option value="">请选择分类</option>                
                <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>                  
                <option value="<?php echo $vo['id']; ?>"><?php echo $vo['title']; ?></option>                
                <?php if(is_array($vo['son']) || $vo['son'] instanceof \think\Collection || $vo['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$s): $mod = ($i % 2 );++$i;?>                    
                <option value="<?php echo $s['id']; ?>">&nbsp;&nbsp;&nbsp;|--<?php echo $s['title']; ?></option>                
                <?php if(is_array($s['son']) || $s['son'] instanceof \think\Collection || $s['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $s['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$b): $mod = ($i % 2 );++$i;?>                    	
                <option value="<?php echo $b['id']; ?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|----<?php echo $b['title']; ?></option>                
                <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?>              
              </select>
            </li>
            <?php endif; ?>
            <li> <span>请选择复制：</span>
              <select name="copynum" onchange="sycms.plattr('<?php echo url('copyArticle'); ?>',this)">
                <option value="">请选择复制</option>
                <option value="5">复制5条</option>
                <option value="10">复制10条</option>
                <option value="15">复制15条</option>
                <option value="20">复制20条</option>
              </select>
            </li>
          </ul></td>
      </tr>
      <tr>
        <td colspan="8"><div class="page"><?php echo $page; ?></div></td>
      </tr>
      <?php endif; ?>
    </table>
  </form>
</div>
